<?php
global $_GPC;
$id = $_GPC['id'];
require_once dirname(__FILE__)."/../model/user.php";
require_once dirname(__FILE__)."/../model/api.php";
/*if(!isUser()){
    $url =$this->createMobileUrl('login');
    header("location: $url");
    setJumpUrl();
    die();
}
$user= getUser();*/

$request = postCurl(getServer()."/getCompanyById",array(
    "id"=>$id
));

$data = $request['data'];
$itemSum = $data['list'][0];

//var_dump($item);

/*产品信息*/
$request2 = postCurl(getServer()."/getGoodsByCompanyId",array(
    "companyid"=>$id
));


$data2 = $request2['data'];


/*招聘信息*/
$request3 = postCurl(getServer()."/getRecruitByCompanyId",array(
    "companyid"=>$id
));

$data3 = $request3['data'];
/*var_dump($data3);*/



include $this->template('enterpriseInfo');